$(function () {
	$("#content").on('click', function (e) {
		//当前点击的目标
		var obj = $(e.target);
		var name = obj.attr('name')
		switch(name){
			case "tabpage":
				tabpage(obj);
			break;

		}

	})
});

function tabpage(obj) {
	var isActive = obj.parent().hasClass('active');
	if (isActive) {
		return;
	}
	obj.parent().siblings().removeClass('active');
	obj.parent().addClass('active');
	var type = obj.attr("data-type")
	switch(type){
		case "department_user_list":
		
		break;
		case "department_set":
		
		break;
	}
}





